<template>
	<view>
		<view class="m-2 py-4 px-3 rounded-20 d-flex j-sb flexd_template" @click="freight_flexd">
			<view class="d-flex a-center">
				<view class="fixed"><image src="../../static/images/goods/icon_shipping_template_fixed.png" class="fixed_img"></image></view>
				<view class="text-white ml-3 font-32">固定模板</view>
			</view>
			<u-icon name="arrow-right" color="#ffffff" size="35"></u-icon>
		</view>
		<view class="m-2 py-4 px-3 rounded-20 d-flex j-sb customize_template" @click="freight_customize">
			<view class="d-flex a-center">
				<view class="customize"><image src="../../static/images/goods/icon_shipping_template_customize.png" class="customize_img"></image></view>
				<view class="text-white ml-3 font-32">运费模板</view>
			</view>
			<u-icon name="arrow-right" color="#ffffff" size="35"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			// 固定模板
			freight_flexd(){
				uni.navigateTo({
					url:"/pages/goods-fixed-template/goods-fixed-template"
				})
			},
			// 运费模板
			freight_customize(){
				uni.navigateTo({
					url:"/pages/goods-freight-template/goods-freight-template"
				})
			}
		}
	}
</script>

<style>
	.flexd_template{
		background: linear-gradient(to right,#ff7151,#ff9e50);
	}
	.fixed{
		width: 130upx;
		height: 130upx;
		border-radius: 50%;
		background-color: #e1602a;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.fixed_img{
		width: 70upx;
		height: 70upx;
	}
	
	.customize_template{
		background: linear-gradient(to right,#4685ff,#4ab5f8);
	}
	.customize{
		width: 130upx;
		height: 130upx;
		border-radius: 50%;
		background-color: #2e72cd;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.customize_img{
		width: 70upx;
		height: 70upx;
	}
</style>
